home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / NET / SPX22 / SPX22.DEI < prev    next >
Encoding:
Text File  |  1995-10-05  |  3.3 KB  |  83 lines

  1. /* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
  2. /*****************************************************************************
  3.   NAME
  4.    spx22.dei- Windows 95 V3 de-installation script for SPX/IPX Protocol Adapter.
  5.  
  6.   DESCRIPTION
  7.     This script removes the Windows 95 SPX/IPX files and un-registers the
  8.     product.
  9.  
  10.   MODIFIED    DD-MMM-YY Reason
  11.     trodgers  28-JAN-92 Created.
  12.     zkhan     11-AUG-93 Modified for SQLNET and for using V3.0.9.3.2 or later
  13.             of the installer.
  14.     eflores   06-APR-94 Modified for Windows NT.
  15.     ljain     07-JUL-95 Modified for Windows 95.
  16. *****************************************************************************/
  17. {
  18.   /* Check Product Dependencies */
  19.  { doit = execute("%installer_home%\win95.dei"); }
  20.    [
  21.     'UNBOUND_VARIABLE: signal('failure,instantiate(nls("instver_too_early2",
  22. "The version of the Installer currently running is %%installer_version%%. The
  23. product(s) you have chosen to deinstall were installed with a later version of
  24. the Installer. Please use a later version of the Installer to deinstall these
  25. product(s).")));
  26.   ]
  27.  
  28.  
  29.  if (doit)
  30.    {
  31.  
  32.     net2_deinstall_registry = nls("net2_deinstall_registry","Unregistering %%registry_label%%...");
  33.  
  34.     net2_deinstall_script = nls("net2_deinstall_script","Deinstalling %%registry_label%% Installation Scripts...");
  35.  
  36.     net2_deinstall_dll = nls("net2_deinstall_dll","Deinstalling %%registry_label%% DLL's...");
  37.  
  38.     spx22_deinst = instantiate(nls("spx22_deinst", "A %%registry_label%% DLL (NTSNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%registry_label%% before deinstalling %%registry_label%%.
  39.  
  40. Choose OK after you have closed all Oracle applications and want to resume the deinstallation of %%registry_label%%.
  41.  
  42. Choose CANCEL to terminate the deinstallation of %%registry_label%%.
  43.     "));
  44.     spx22_deinst_term = instantiate(nls("spx22_inst_term", "%%registry_label%% deinstallation terminated."));
  45.     spx22_deinst_content = instantiate(nls("spx22_deinst_content", "%%registry_label%% DLL Used"));
  46.     spx22_deinst_help = instantiate(nls("spx22_deinst_help", "The Oracle Installer has detected that a %%registry_label%% DLL (NTSNT.DLL) is being used on this machine.  Please stop all Oracle applications that are using %%registry_label%% before deinstalling %%registry_label%%.
  47.  
  48. Choose OK after you have closed all Oracle applications and want to resume the deinstallation of %%registry_label%%.
  49.  
  50. Choose CANCEL to terminate the deinstallation of %%registry_label%%.
  51.     "));
  52.  
  53.     /* check to see if all apps are closed */
  54.     done = FALSE;
  55.     while(not(done))
  56.     { move_file("%ORACLE_HOME%\bin\ntsnt.dll", "%ORACLE_HOME%\bin\ntsnt.dll"); done = TRUE;}
  57.     [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR:
  58.       {
  59.         information_dialog(instantiate(spx22_deinst), spx22_deinst_content, instantiate(spx22_deinst_help));
  60.       }
  61.       'FILE_NOT_FOUND:
  62.         done = TRUE;
  63.     ]                       
  64.  
  65.     /* Unregister Product */
  66.     ui_product(registry_label);
  67.  
  68.     /* Remove Files */
  69.     ui_action(instantiate(net2_deinstall_dll));
  70.     remove(dll); 
  71.  
  72.     ui_action(instantiate(net2_deinstall_script));
  73.     remove(deinstl);
  74.  
  75.     ui_action(instantiate(net2_deinstall_registry));
  76.     unregister(current_registry);
  77.   }
  78. }
  79.  
  80.  
  81.  
  82.  
  83.